<%@ page import="ionio.cscw.game.Database" %>
<%@ page import="com.google.appengine.api.datastore.Entity" %>
<%@ page import="java.util.List" %>
<% Database db=new Database(); %>
<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Right On The Reel</title>
	<link rel="stylesheet" type="text/css" href="style.css"/>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>    
  </head>
  <body>
	<h1>HALL OF FAME</h1>
	<div id="bestscores">
		<ol>
		<% 
			List<Entity> best=db.getBestScores(1,15); 
			for(Entity current:best) {
				out.println("<li><div class='playername'>"+current.getProperty("name")+"</div><div class='score'>"+current.getProperty("score")+"</div></li>");
			}
		%>
		<ol>
	</div>
  <br/><br/>
  <a class="button" href="index.html">CONTINUE</a>
  </body>
</html>
